<?php



require "database.php";

$_id_       =$_GET['id'];
$_orderon_  =$_GET['orderon'];


$__order___=file_get_contents("order.json");
$__order___=json_decode($__order___,1);



for ($i = 0; $i < count($__order___); $i++) {
    if ($__order___[$i]["id"]==$_id_) {
        $__order___[$i]["order_no"]=$_orderon_;
        
    }
}


$__order___=json_encode($__order___,JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
file_put_contents("order.json",$__order___);